package com.padakeji.android.pworks.content;

import java.util.Map;

/**
 * Created by atanl on 2015/10/21.
 */
public interface PadaHttpClient {

    interface Callback<T> {
        void onResponse(T response);
        void onFailure(Throwable e);
    }

    String get(String url, Map<String, String> header);

    <T> T get(String url, Map<String, String> header, Class<T> c);

    String get(String url, Map<String, String> header, Callback<String> callback);

    <T> void get(String url, Map<String, String> header, Class<T> c, Callback<T> callback);

}
